import services from '@/services/user';
export function setToken(token: string):void{
	// 设置token
	localStorage.setItem('token', token)
}
export function getToken():string{
	return localStorage.getItem('token')||""
}
export function login(username:string,password:string){
	
	// 登录
	return services.login({
		username,
		password
	})
}